package com.ytrsoft.enums;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "消息类型")
public enum MessageType {
    @Schema(description = "文本")
    TEXT(),
    @Schema(description = "图片")
    IMAGE(),
    @Schema(description = "声音")
    VOICE(),
    @Schema(description = "视频")
    VIDEO(),
    @Schema(description = "文件")
    FILE(),
    @Schema(description = "日程")
    SCHEDULE();

    @JsonCreator
    public static MessageType enumCreator(String name) {
        return MessageType.valueOf(name);
    }
}